package com.qys.livesMall.shortVideo.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.NotBlank;

import jakarta.validation.constraints.NotNull;
import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 短视频
 * </p>
 *
 * @author dp
 * @since 2023-05-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("h2_short_video_category")
@Schema(name = "H2ShortVideoCategory对象", description = "短视频")
public class H2ShortVideoCategory implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    @Schema( description= "分类名称")
    @TableField("name")
    @NotBlank(message = "请填写分类名称")
    private String name;

    @Schema( description= "排序")
    @TableField("sort")
    @NotNull(message = "请填写排序信息")
    private Integer sort;

    @Schema( description= "是否删除")
    @TableField("deleted")
    @JsonIgnore
    private Integer deleted;


}
